<?php 
session_start();
class partner extends CI_Controller  {

        /**
        * Index Page for this controller.
        *
        * Maps to the following URL
        * 		http://example.com/index.php/welcome
        *	- or -  
        * 		http://example.com/index.php/welcome/index
        *	- or -
        * Since this controller is set as the default controller in 
        * config/routes.php, it's displayed at http://example.com/
        *
        * So any other public methods not prefixed with an underscore will
        * map to /index.php/welcome/<method_name>
        * @see http://codeigniter.com/user_guide/general/urls.html
        */
       private $_configs = null;
       function __construct()
        {
            parent::__construct();
            $this->load->helper('url');
            $this->load->library('javascript');
            $this->load->library('session');
            $this->load->library('smarty3','','smarty');
            $this->_configs["title"]="Quản Lý Deal";
            $this->_configs["authority"]="deal";
            $this->_configs["MinAuthority"]=0;
            $this->load->model('deal/guide_model'   ,'guide_model'      );
            $_SESSION["DRegion"]=isset($_SESSION["DRegion"])?$_SESSION["DRegion"]:"";
            $_SESSION["DRegionName"]=isset($_SESSION["DRegionName"])?$_SESSION["DRegionName"]:"Toàn Quốc";
        }
        public function index()
	{
            $Configs=null;
            $Configs["menu"]="partner";
            $Configs["dealtype"]="";
            $Configs["U"]["avata"]="default";
            $Configs["U"]["email"]="";
            if(isset($_SESSION["D-USER"])){$Configs["U"]=$_SESSION["D-USER"];}
            $Configs["Foot"]=@file_get_contents(APPPATH."HTML_DOM/Foot.txt");
            $data=array();
            $data["partner"]=$this->guide_model->getByID("44");
            $this->smarty->assign('data', $data);
            $this->smarty->assign('Configs', $Configs);
            $this->smarty->assign('_SESSION', $_SESSION);
            $this->smarty->view     (   "deal/subs/00_css"       ,"dcss"         );
            $this->smarty->view     (   "deal/subs/00_script"    ,"dscript"      );
            $this->smarty->view     (   "deal/subs/01_head"      ,"dhead"        );
            $this->smarty->view     (   "deal/subs/02_menu"      ,"dmenu"        );
            $this->smarty->view     (   "deal/subs/03_foot"      ,"dfoot"        );
            $this->smarty->view     (   "deal/pages/15_partner"     ,"dpage"        ); 
            $this->smarty->display  (   "deal/01_home"                          );
	}
         
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */